/*
 * XML Type:  AbstractInvestmentSellTransaction
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.AbstractInvestmentSellTransaction
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML AbstractInvestmentSellTransaction(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class AbstractInvestmentSellTransactionImpl extends net.ofx.types.x2003.x04.impl.AbstractInvestmentTransactionBaseImpl implements net.ofx.types.x2003.x04.AbstractInvestmentSellTransaction
{
    
    public AbstractInvestmentSellTransactionImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName INVSELL$0 = 
        new javax.xml.namespace.QName("", "INVSELL");
    
    
    /**
     * Gets the "INVSELL" element
     */
    public net.ofx.types.x2003.x04.InvestmentSell getINVSELL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentSell target = null;
            target = (net.ofx.types.x2003.x04.InvestmentSell)get_store().find_element_user(INVSELL$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "INVSELL" element
     */
    public void setINVSELL(net.ofx.types.x2003.x04.InvestmentSell invsell)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentSell target = null;
            target = (net.ofx.types.x2003.x04.InvestmentSell)get_store().find_element_user(INVSELL$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.InvestmentSell)get_store().add_element_user(INVSELL$0);
            }
            target.set(invsell);
        }
    }
    
    /**
     * Appends and returns a new empty "INVSELL" element
     */
    public net.ofx.types.x2003.x04.InvestmentSell addNewINVSELL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentSell target = null;
            target = (net.ofx.types.x2003.x04.InvestmentSell)get_store().add_element_user(INVSELL$0);
            return target;
        }
    }
}
